<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>文档标题</title>
    <script>
      const appPrice = 3;
      const pearPrice = 2;
      const peachPrice = 1;

      for (let appNum = 0; appNum <= 200 / appPrice; appNum++) {
        for (let pearNum = 0; pearNum <= 200 / pearPrice; pearNum++) {
          for (let peachNum = 0; peachNum <= 200 / peachPrice; peachNum++) {

            if (appNum + pearNum + peachNum === 100 &&
              appPrice * appNum + pearPrice * pearNum + peachPrice * peachNum === 200) {

              console.log(`购买苹果${appNum}个，购买鸭梨${pearNum}个，购买桃子${peachNum}个`)
            }
          }
        }
      }
    </script>
</head>
<body>
<h1>我的第一个HTML页面</h1>
<p>我的第一个段落。</p>
</body>
</html>
